package br.com.hbt.thread;

public class Thing {

    private static int staticField;
    private int nonstaticfield;

    public static synchronized int getStaticField() {
        return staticField;
    }

    public static synchronized void setStaticField(int sf) {
        Thing.staticField = sf;
    }

    public synchronized int getNonstaticfield() {
        return nonstaticfield;
    }

    public synchronized void setNonstaticfield(int nonstaticfield) {
        this.nonstaticfield = nonstaticfield;
    }

}
